﻿@model List<Zhang.Model.UCenter.Notes>
@{
    ViewBag.Title = "Notes";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section JS
{
    @Scripts.Render("~/js/Notes")
}
@section CSS
{
    @Styles.Render("~/css/Notes")
}
<div id="content">
    <div class="Content_Left"></div>
    <div class="Middle">
        @if (Model != null && Model.Count > 0)
        {
            foreach (var item in Model)
            {
                <div class="card">
                    <div class="card-header bg-success">
                        <div class="el-card__header">
                            <h4>@item.Title</h4>

                            <button type="button" class="button">
                                <span>
                                    <i class="fa fa-align-left"></i>
                                    查看详情
                                    <i class="fa fa-angle-right"></i>
                                </span>
                            </button>
                        </div>
                    </div>

                    <div class="card-body">
                        @Html.Raw(item.Text.Length > 30 ? item.Text.Substring(30) + "..." : item.Text)
                    </div>
                </div>
            }
        }
        else
        {
            <div class="no_result">
                <img src="//img.seabaycargo.com/s-en/Airport/air_noresult.png" />
                <p>
                    There's no airport available in <span class="D47">@ViewBag.Keyword @ViewBag.TypeTitle</span>.<br />
                    Please change another keyword and search again.
                </p>
            </div>
        }


        @Html.Raw(ViewBag.HtmlCode)
    </div>
    <div class="Content_Right">

    </div>
</div>